//
//  ZYFilterView.h
//  YiLin
//
//  Created by Zyark on 2018/6/7.
//  Copyright © 2018年 Zyark. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZYModeTypeModel;
@class ZYFilterSettingView;
@protocol ZYFilterSettingViewDelegate <NSObject>
@optional
/**
 值改变
 @param filterSettingView 当前view
 @param value 当前值
 @param type 当前过滤器类型
 */
-(void)filterSettingView:(ZYFilterSettingView *)filterSettingView changeValue:(CGFloat)value type:(NSUInteger)type;

/**
 清空按钮点击
 @param filterSettingView 当前view
 @param button 点击按钮
 @param type 当前过滤器类型
 */
-(void)filterSettingView:(ZYFilterSettingView *)filterSettingView doClearClick:(UIButton *)button type:(NSUInteger)type;

@end

@interface ZYFilterSettingView : UIView
@property(nonatomic,assign) CGFloat maxValue;
@property(nonatomic,assign) CGFloat minValue;
@property(nonatomic,assign) CGFloat systemValue;
@property(nonatomic,assign) CGFloat currentValue;
@property(nonatomic,assign) CGFloat alreadyUsed;
@property(nonatomic,strong) ZYModeTypeModel *model;
@property(nonatomic,weak) id<ZYFilterSettingViewDelegate> delegate;
@end
